<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>1 ，添加编辑器js
<script language="javascript" src="image/editor/editor_function.js"></script>
<script language="javascript">
//Ctrl+Enter 发布
function ctrlEnter(event, btnId, onlyEnter) {
	if(isUndefined(onlyEnter)) onlyEnter = 0;
	if((event.ctrlKey || onlyEnter) && event.keyCode == 13) {
		$(btnId).click();
	}
}
function isUndefined(variable) {
	return typeof variable == 'undefined' ? true : false;
}

</script>
<form name="ddd" >
2，在FORM表单中添加下面代码：

<textarea class="userData" name="content" id="uchome-ttHtmlEditor" style="height:100%;width:100%;display:none;border:0px">$modlist[content]</textarea>
<iframe src="editor.php?charset=utf8&allowhtml=1" name="uchome-ifrHtmlEditor" id="uchome-ifrHtmlEditor" scrolling="no" border="0" frameborder="0" style="width:100%;border: 1px solid #C5C5C5;" height="400"></iframe>

3， 在表单提交时调用 edit_save();
	如：<input type="submit" name="fieldsubmit" value="提交" class="submit"  onclick="edit_save();">
	
	</form>
</body>
</html>
